﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvLotLocLpnList.aspx.cs" EnableEventValidation="false" Inherits="WMS6.Web.Inventory.InvLotLocLpnList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Inventory/InvLotLocLpnQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>InvLotLocLpnList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
  <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
      <base target="_self" /> 
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){            
            var action = document.getElementById("hdnActionID").value;
            if(action != null && action != "")
            {
                var array = action.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initListPage();
            }
        }   
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "InvLotLocLpnQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>    
</head>
<body>
    <form id="F5012" runat="server">
    <div>    
          <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblInvLotLocLpnList" runat="server" 
                            CssClass="label_header"  Text="库存列表" 
                            meta:resourcekey="lblInvLotLocLpnList" ></asp:Label></td>                        
             
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
                <div id="div_List">
                <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvInvLotLocLpn" runat="server" AutoGenerateColumns="False" AllowSorting="True" oninit="gvInvLotLocLpn_Init"
                        OnSelectedIndexChanging="gvInvLotLocLpn_SelectedIndexChanging" OnRowDataBound="gvInvLotLocLpn_RowDataBound"
                        OnSorting="gvInvLotLocLpn_Sorting" CssClass="gridview" DataKeyNames="LOT,LOC,LPN_ID,SKU_ID,DESCR,AVAILABLE_QTY,PACK_ID,HOLD_STATUS"
                        PageSize="200" Width="2600px" meta:resourcekey="gvInvLotLocLpn">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" 
                                meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField ShowHeader="False" meta:resourcekey="TemplateField">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnSelectOwner" runat="server" CausesValidation="False" CommandName="Select"
                                        
                                        Text="&lt;img src=&quot;../Images/select.gif&quot; class=&quot;img&quot; 
                                        style=&quot;border:none 0px blue;&quot; alt=&quot;select&quot; __designer:mapid=&quot;647&quot;/&gt;" 
                                        meta:resourcekey="lnkbtnSelectOwner"></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="LOT" HeaderText="批次号" FooterText="批次号" 
                                SortExpression="LOT" meta:resourcekey="LOT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" 
                                SortExpression="LOC" meta:resourcekey="LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LPN_ID" HeaderText="LPN" FooterText="LPN" 
                                SortExpression="LPN_ID" meta:resourcekey="LPN_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" 
                                SortExpression="SKU_ID" meta:resourcekey="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" 
                                SortExpression="OWNER_ID" meta:resourcekey="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="DESCR" 
                                meta:resourcekey="DESCR" >
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" 
                                        Text='<%# Eval("DESCR").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />       
                             </asp:TemplateField>
                            <asp:TemplateField FooterText="可用数量" HeaderText="可用数量" 
                                SortExpression="AVAILABLE_QTY" meta:resourcekey="AVAILABLE_QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblQTY" runat="server" 
                                        Text='<%# GetPreferenceDigit(Eval("AVAILABLE_QTY").ToString()) %>' 
                                        meta:resourcekey="lblQTY"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="SKU_PROPERTY" HeaderText="货品属性" FooterText="货品属性" 
                                SortExpression="SKU_PROPERTY" meta:resourcekey="SKU_PROPERTY">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="HOLD_STATUS" HeaderText="冻结状态" FooterText="冻结状态" 
                                SortExpression="HOLD_STATUS" meta:resourcekey="HOLD_STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EXTERNAL_LOT" HeaderText="外部批号" FooterText="外部批号" 
                                SortExpression="EXTERNAL_LOT" meta:resourcekey="EXTERNAL_LOT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" 
                                SortExpression="PRODUCE_DATE" meta:resourcekey="PRODUCE_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblPRODUCE_DATE" runat="server" 
                                        Text='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>' 
                                        meta:resourcekey="lblPRODUCE_DATE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" 
                                SortExpression="EXPIRY_DATE" meta:resourcekey="EXPIRY_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblEXPIRY_DATE" runat="server" 
                                        Text='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>' 
                                        meta:resourcekey="lblEXPIRY_DATE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="VENDOR_NAME" HeaderText="供应商名称" FooterText="供应商名称" 
                                SortExpression="VENDOR_NAME" meta:resourcekey="VENDOR_NAME">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR01" HeaderText="批次属性01" FooterText="批次属性01" 
                                SortExpression="LOT_ATTR01" meta:resourcekey="LOT_ATTR01">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR02" HeaderText="批次属性02" FooterText="批次属性02" 
                                SortExpression="LOT_ATTR02" meta:resourcekey="LOT_ATTR02">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR03" HeaderText="批次属性03" FooterText="批次属性03" 
                                SortExpression="LOT_ATTR03" meta:resourcekey="LOT_ATTR03">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR04" HeaderText="批次属性04" FooterText="批次属性04" 
                                SortExpression="LOT_ATTR04" meta:resourcekey="LOT_ATTR04">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR05" HeaderText="批次属性05" FooterText="批次属性05" 
                                SortExpression="LOT_ATTR05" meta:resourcekey="LOT_ATTR05">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR06" HeaderText="批次属性06" FooterText="批次属性06" 
                                SortExpression="LOT_ATTR06" meta:resourcekey="LOT_ATTR06">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR07" HeaderText="批次属性07" FooterText="批次属性07" 
                                SortExpression="LOT_ATTR07" meta:resourcekey="LOT_ATTR07">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR08" HeaderText="批次属性08" FooterText="批次属性08" 
                                SortExpression="LOT_ATTR08" meta:resourcekey="LOT_ATTR08">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR10" HeaderText="批次属性10" FooterText="批次属性10" 
                                SortExpression="LOT_ATTR10" meta:resourcekey="LOT_ATTR10">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    </div>        
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
   
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        
                    </td>
                    <td>
                        <asp:Button ID="btnNewSearch" runat="server" Text="<%$Resources:ButtonResource,btnNewSearch%>" CssClass="button" 
                          OnClick="btnNewSearch_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button"  Enabled="False"
                            OnClick="btnExport_Click"  />
                    </td>
                    <td>
                     
                    </td>
                    <td>
                      
                    </td>
                </tr>
            </table>
        </div>      
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
      <input type="hidden" id="hdnRtnValue" runat="server" />   
      <input type="hidden" id="hdnOwnerID" runat="server" />   
      
      
        
    </form>
</body>
</html>

